<?php
session_start();
@$nc=$_SESSION['uname'];
@$zt=$_SESSION['zt'];

@mysql_connect('localhost', 'root', 'root');
if (mysql_errno()) {
    die(mysql_errno());
}
mysql_select_db('blog');
mysql_set_charset('utf8');

$sql_liuyan = "select * from liuyan order by id";

$res_liuyan = mysql_query($sql_liuyan);
while ($row = mysql_fetch_assoc($res_liuyan)) {
    $arr_liuyan[] = $row;
}

$sql = "select * from wenzhang order by click desc";
$res = mysql_query($sql);
while ($row = mysql_fetch_assoc($res)) {
    $arr[] = $row;
}
$sql_title = "select * from title ";
$res_title = mysql_query($sql_title);
while ($row = mysql_fetch_assoc($res_title)) {
    $arr_title[] = $row;
}


mysql_close();

?>





<!doctype html>
<html>
<head>
<meta charset="utf8">
<title>个人博客模板古典系列之——江南墨卷</title>
<meta name="keywords" content="个人博客模板古典系列之——江南墨卷" />
<meta name="description" content="个人博客模板古典系列之——江南墨卷" />
<link href="css/base.css" rel="stylesheet">
<link href="css/index.css" rel="stylesheet">
<link href="css/write.css" rel="stylesheet">
<!--[if lt IE 9]>
<script src="js/modernizr.js"></script>
<![endif]-->
<script type="text/javascript" src="js/jquery.js"></script>
</head>
<body>
<div class="topnav">
<a href="http://www.yangqq.com/download/div/2017-07-16/785.html" target="_blank">个人博客模板古典系列之——江南墨卷</a><?php echo @($_SESSION['islogin'] == 1) ? '<b>欢迎' . $_SESSION['uname'] . '</b>' : '<a href="denglu.php">请登陆</a><a href="zhuce.php">注册</a>' ?>
 <a href="zhuxiao.php">注销</a>
</div>

<div id="wrapper">
  <header>
    <div class="headtop"></div>
    <div class="contenttop">
      <div class="logo f_l">个人博客模板古典系列之——江南墨卷</div>
      <div class="search f_r">
        <form action="/e/search/index.php" method="post" name="searchform" id="searchform">
          <input name="keyboard" id="keyboard" class="input_text" value="请输入关键字" style="color: rgb(153, 153, 153);" onfocus="if(value=='请输入关键字'){this.style.color='#000';value=''}" onblur="if(value==''){this.style.color='#999';value='请输入关键字'}" type="text">
          <input name="show" value="title" type="hidden">
          <input name="tempid" value="1" type="hidden">
          <input name="tbname" value="news" type="hidden">
          <input name="Submit" class="input_submit" value="搜索" type="submit">
        </form>
      </div>
      <div class="blank"></div>
      <nav>
        <div  class="navigation">
          <ul class="menu">
            <li><a href="index.php">网站首页</a></li>
            <li><a href="#">关于我</a>
              <ul>
                <li><a href="about.html">个人简介</a></li>
                <li><a href="listpic.html">个人相册</a></li>
              </ul>
            </li>
            <li><a href="#">文章类别</a>
              <ul>
              <?php
foreach ($arr_title as $value) {
    echo '         <li><a href="newslistpic.php?name=' . $value['name'] . '">' . $value['name'] . '</a></li> ';
}
?>


              </ul>
            </li>
            <li><a href="newslistpic.html">技术文章</a> </li>
            <li><a href="">给我留言</a> </li>
          </ul>
        </div>
      </nav>
      <SCRIPT type=text/javascript>
  // Navigation Menu
  $(function() {
    $(".menu ul").css({display: "none"}); // Opera Fix
    $(".menu li").hover(function(){
      $(this).find('ul:first').css({visibility: "visible",display: "none"}).slideDown("normal");
    },function(){
      $(this).find('ul:first').css({visibility: "hidden"});
    });
  });
</SCRIPT>
    </div>
  </header>
  <div class="jztop"></div>
  <div class="container">
    <div class="write">
    <form action="doliuyan.php" method="post">
     <script id="container" name="content" type="text/plain" style="width: 620px">
                             </script>
                             <input type="hidden" name="user" value=<?php echo $nc?>>
                             <input type="hidden" name="zt" value=<?php echo $zt?>>
           <input type="submit" value="提交">
      </form>
    <?php
$str = '<table border=1 width=600px >';
foreach ($arr_liuyan as $v) {
$str.=   '<tr >
           <td width=50px height=20px >用户：'.$v['user_nc'] .'</td>
           <td width=50px height=20px>留言内容：' . $v['content'] .'</td >
           <td width=50px height=20px>时间：' .date('Y-m-d', $v['ctime']).'</td>
           </tr>';
    }
    $str.='</table>';
    echo $str;
    ?>











    </div>
    <div class="r_box f_r">
      <div class="tit01">
        <h3 class="tit">关注我</h3>
        <div class="gzwm">
          <ul>
            <li><a class="email" href="#" target="_blank">我的电话</a></li>
            <li><a class="qq" href="#mailto:admin@admin.com" target="_blank">我的邮箱</a></li>
            <li><a class="tel" href="#" target="_blank">我的QQ</a></li>
            <li><a class="prize" href="#">个人奖项</a></li>
          </ul>
        </div>
      </div>
      <!--tit01 end-->

      <div class="tuwen">
        <h3 class="tit">图文推荐</h3>
        <ul>
          <li><a href="/"><img src="images/01.jpg"><b>住在手机里的朋友</b></a>
            <p><span class="tulanmu"><a href="/">手机配件</a></span><span class="tutime">2015-02-15</span></p>
          </li>
          <li><a href="/"><img src="images/02.jpg"><b>教你怎样用欠费手机拨打电话</b></a>
            <p><span class="tulanmu"><a href="/">手机配件</a></span><span class="tutime">2015-02-15</span></p>
          </li>
          <li><a href="/" title="手机的16个惊人小秘密，据说99.999%的人都不知"><img src="images/03.jpg"><b>手机的16个惊人小秘密，据说...</b></a>
            <p><span class="tulanmu"><a href="/">手机配件</a></span><span class="tutime">2015-02-15</span></p>
          </li>
          <li><a href="/"><img src="images/06.jpg"><b>住在手机里的朋友</b></a>
            <p><span class="tulanmu"><a href="/">手机配件</a></span><span class="tutime">2015-02-15</span></p>
          </li>
          <li><a href="/"><img src="images/04.jpg"><b>教你怎样用欠费手机拨打电话</b></a>
            <p><span class="tulanmu"><a href="/">手机配件</a></span><span class="tutime">2015-02-15</span></p>
          </li>
          <li><a href="/"><img src="images/02.jpg"><b>教你怎样用欠费手机拨打电话</b></a>
            <p><span class="tulanmu"><a href="/">手机配件</a></span><span class="tutime">2015-02-15</span></p>
          </li>
          <li><a href="/" title="手机的16个惊人小秘密，据说99.999%的人都不知"><img src="images/03.jpg"><b>手机的16个惊人小秘密，据说...</b></a>
            <p><span class="tulanmu"><a href="/">手机配件</a></span><span class="tutime">2015-02-15</span></p>
          </li>
        </ul>
      </div>
      <div class="ph">
                           <!-- 配置文件 -->
    <script type="text/javascript" src="/public/baidu/ueditor.config.js"></script>
    <!-- 编辑器源码文件 -->
    <script type="text/javascript" src="/public/baidu/ueditor.all.js"></script>
    <!-- 实例化编辑器 -->
    <script type="text/javascript">
        var ue = UE.getEditor('container',{
          toolbars:[['emotion']]
        });
    </script>
        <h3 class="tit">点击排行</h3>
        <ul class="rank">

         <?php 
                     foreach ($arr as $v) {
                echo' <li><a href="/jstt/bj/2017-07-13/784.html"  target="_blank">'.$v['title'].'</a></li>';

                     }
         ?>
        </ul>
        </ul>
      </div>
      <div class="ad"> <img src="images/03.jpg"> </div>
    </div>
  </div>
  <!-- container代码 结束 -->
  <div class="jzend"></div>
  <footer>
    <div class="footer">
      <div class="f_l">
        <p>All Rights Reserved 版权所有：<a href="http://www.yangqq.com">杨青个人博客</a> 备案号：蜀ICP备00000000号</p>
      </div>
      <div class="f_r textr">
        <p>Design by DanceSmile</p>
      </div>
    </div>
  </footer>
</div>
</body>
</html>
